package com.campus.campusdelivery.dto;

import lombok.Data;
import java.math.BigDecimal;

@Data
public class StatsDto {
    // 基础统计字段
    private Integer orderCount;
    private BigDecimal totalSales;
    private Integer pendingOrders;
    private Integer completedOrders;
    private Integer cancelledOrders;
    
    // 管理员前端需要的额外字段
    private Integer totalUsers;
    private Integer totalMerchants;
    private Integer totalOrders;
    private BigDecimal totalRevenue;
    
    public StatsDto() {
        this.orderCount = 0;
        this.totalSales = BigDecimal.ZERO;
        this.pendingOrders = 0;
        this.completedOrders = 0;
        this.cancelledOrders = 0;
        this.totalUsers = 0;
        this.totalMerchants = 0;
        this.totalOrders = 0;
        this.totalRevenue = BigDecimal.ZERO;
    }
}
